package com.slz3.business.module.drawManagement.draFreeLottery.service;

import com.slz3.business.module.drawManagement.draFreeLottery.domain.DraFreeLottery;
import com.slz3.business.module.drawManagement.draIntegralLottery.domain.DraIntegralLottery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface DraFreeLotteryService {

    DraFreeLottery save(DraFreeLottery draFreeLottery);

    Page<DraFreeLottery> page(MultiValueMap<String,String> queryParams);

    DraFreeLottery modify(DraFreeLottery draFreeLottery);

    Optional<DraFreeLottery> single(UUID uuid);

    List<DraFreeLottery> findAllByUuids(Iterable<UUID> uuids);

    List<DraFreeLottery> delete(List<DraFreeLottery> draFreeLotteryList);
    
    List<DraFreeLottery> lottery(List<DraFreeLottery> draFreeLotteryList);
}
